fix bug: AttributeError: 'module' object has no attribute 'StrictRedis'

Brightcells 8 jaren geleden
bovenliggende
commit
ae502c940d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      pai2/func_settings.py

+ 1 - 1
pai2/func_settings.py

@@ -13,4 +13,4 @@ def redis_conf(conf):
13 13
 
14 14
 
15 15
 def redis_connect(conf):
16
-    return redis.StrictRedis(connection_pool=redis.ConnectionPool(**redis_conf(conf)))
16
+    return redis.StrictRedisExtensions(connection_pool=redis.ConnectionPool(**redis_conf(conf)))